<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
 String path = request.getContextPath();
%>
<html>
	<head>
		<title>用户权限功能树</title>
		<link rel="stylesheet" href="<%=path%>/webmanager/dtree/dtree.css"
			type="text/css"></link>
		<script type="text/javascript"
			src="<%=path%>/webmanager/dtree/dtree.js"></script>
	</head>
<style type="text/css">
<!--
body {
	margin-left: 10px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	height:100%;
}
-->
</style>
	<body>
	  <form action="">
  </form>
  <script type="text/javascript">
 <s:if test="rightTreeList.size==0">
 		alert("该用户还没有系统权限,\n系统将进入系统授权页面。");
 		var data = new Array();
 		data[0]="noRight";
 		data[1]="<s:property value="yhbhs"/>";
 		window.returnValue=data;
 		window.close();
 </s:if>
</script>
  <table border="0" width="150" cellpadding="0" cellspacing="0">
    <tr >
  <td height="5">
  </td>
  </tr>
  <tr >
  <td width="150">
<div id="bmtree" class="dtree" style="left: 20px;">
<script type="text/javascript">
dtree = new dTree('dtree');
<s:iterator  value="rightTreeList" status="index">
<s:if test="${sbsjd==0}">
dtree.add("<s:property  value="ymbh"/>","<s:property  value="sjbh"/>","<s:property  value="ymmc"/>","","","");
</s:if>
<s:else>
dtree.add("<s:property  value="ymbh"/>","<s:property  value="sjbh"/>","<s:property  value="ymmc"/>",'createAllYmgns.do?ymbhs=<s:property  value="ymbh"/>&qxbh=<s:property  value="qxbh"/>&timeTag=<%=System.currentTimeMillis() %>',"","flright");
</s:else>
</s:iterator>
document.write(dtree);
</script>
</div>
  </td>
  </tr>
  </table>
	</body>
</html>
